<div ng-controller="NewDeviceModalCtrl">
<div class="modal-header">
    <h3 class="modal-title">新增</h3>
</div>
<div class="modal-body">
    <div class="row">
	    <div class="col-sm-10 ">	      
	        <form class="bs-example form-horizontal" >
	            <div class="form-group">
	              <label class="col-lg-3 control-label">所在楼层</label>
	              <div class="col-lg-9">
	                <select class="form-control" ng-model="oo.layer_id">
	                	<option value="">--请选择--</option>
	                	<option ng-repeat="layersdata in layersdata" value="{{layersdata.layer_id}}">{{layersdata.building_name}}{{layersdata.layer_name}}</option>
	                </select>  
	              </div>
	            </div>	            
	           
	            <div class="form-group">
	              <label class="col-lg-3 control-label">设备mac地址</label>
	              <div class="col-lg-9">
	                <input type="text" class="form-control"  ng-model="oo.mac_address">     
	              </div>
	            </div>

	            <div class="form-group">
	              <label class="col-lg-3 control-label">房间名</label>
	              <div class="col-lg-9">
	                <input type="text" class="form-control"  ng-model="oo.house_name">     
	              </div>
	            </div>
	            <div class="form-group">
	              <label class="col-lg-3 control-label">设备编号</label>
	              <div class="col-lg-9">
	                <input type="text" class="form-control"  ng-model="oo.equipment_number">     
	              </div>
	            </div>
	              <div class="form-group">
	              <label class="col-lg-3 control-label">设备入网状态</label>
	              <div class="col-lg-9">
	                <input type="text" class="form-control"  ng-model="oo.equipment_status">     
	              </div>
	            </div>
	              <div class="form-group">
	              <label class="col-lg-3 control-label">使用状态</label>
	              <div class="col-lg-9">
	                <!-- <input type="text" class="form-control"  ng-model="oo.use_status">   -->   
	                <select class="form-control" ng-model="oo.use_status">
	                    <option value="">--请选择--</option>
	                	<option>正常</option>
	                	<option>限制</option>
	                	<option>故障</option>
	                	<option>强制断电</option>	                	
	                </select>
	              </div>
	            </div>
	            <div class="form-group">
	              <label class="col-lg-3 control-label">设备类别</label>
	              <div class="col-lg-9">
	                <select class="form-control" ng-model="oo.type">
	                  	<option value="">--请选择--</option>
	                  	<option>电量</option>
	                  	<option>气象站</option>
	                </select>   
	              </div>
	            </div>
	            <div class="form-group">
	              <label class="col-lg-3 control-label">人员</label>
	              <div class="col-lg-9">
	                  <select class="form-control" ng-model="oo.personnel_id">
	                  	<option value="">--请选择--</option>
	                  	<option ng-repeat="persondata in persondata" value="{{persondata.personnel_id}}">{{persondata.name}}</option>
	                  </select>
	              </div>
	            </div>
	            <div class="form-group">
	              <label class="col-lg-3 control-label">最大功率</label>
	              <div class="col-lg-9">
	                <input type="text" class="form-control"  ng-model="oo.max_power" placeholder="默认值为1000w" required="">     
	              </div>
	            </div>
	            <div class="form-group">
	              <label class="col-lg-3 control-label">自动恢复时间</label>
	              <div class="col-lg-9">
	                <input type="text" class="form-control"  ng-model="oo.auto_regain_min" placeholder="默认值为120分钟">     
	              </div>
	            </div>
	           </form>
	        </div>
	    </div>
	</div>
</div>
<div class="modal-footer">                  
    <button class="btn btn-default" ng-click="cancel()">取消</button>
    <button class="btn btn-danger" ng-click="ok()">确定</button>
</div>
</div>